extends ../layout

block init
  -title = "服务订单"
  -dir = "/html/wuye/order_detail"

block body
  #app
    .list
      .address
        b(v-cloak) {{contactor}}  {{mobile}}
        span(v-cloak) {{address}}
      div(v-cloak)
        span {{fuwuName}}
        span.red {{getStatus(status)}}
      div(style={"flex-wrap": "wrap"})
        div.part(v-for="price in items")
          span(v-cloak) {{price.name}}
          span(v-cloak) {{price.fee}}元
      div 创建时间
        span {{getTime(create_date)}}
      div
        span 上传视频
        span(v-cloak) {{is_upload_video == '0' ? "否":"是" }}
      div
        span 总金额
        span.red(v-cloak) {{total}}元
      div
        span 当前物业
        span(v-cloak) {{wuyeName}}
      div
        span 当前阿姨
        span(v-cloak) {{ayiName || "无"}}

      div.video(v-if="!!video_link",v-cloak)
        button.video_btn(@click="video_btn_click($event)") 隐藏现场视频
        video(width="100%",autoplay="autoplay",muted="true",:src="getVideo(video_link)",@click="video_click")

    div(style={"flex-wrap": "wrap"},@click.prevent="")
      div.btn-block(@click="setAmount",v-if="canSetAmount") 修改金额
      div.btn-block(@click="setConfirm",v-if="canConfirm") 确认
      div.btn-block(@click="setDone",v-if="canSetDone") 服务完成
      div.btn-block(@click="cancel",v-if="canCancel") 取消订单
      div.btn-block(@click="toWuye",v-if="canToWuye") 转给其它物业
      div.btn-block(@click="toAyi",v-if="canToAyi") 指派阿姨


